home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / g_doom / deep870s.zip / HEXENTUT.ACS < prev    next >
Text File  |  1996-02-08  |  3KB  |  117 lines

  1. //--------- sample script for HEXENTUT.ACS -----------------------
  2.  
  3. #include "common.acs"
  4.  
  5. int Script1;       // control script1 running
  6. int DidDoor;       // control hello there once
  7.  
  8. // --------This script takes a licking and keeps on ticking -------
  9. //        N/A here
  10. //        Tid#     DelayValue    Type of Sound  
  11. script 1 (int Tid, int TicDelay, int Type)
  12. {
  13.  
  14.     Script1 = Type;
  15.  
  16.     while (Script1 != 0 )
  17.     {
  18.        switch (Script1)
  19.        {
  20.          case 1:
  21.            ambientsound("ClockTick", 127);    // clock tick sound
  22.            break;
  23.          case 2:
  24.            ambientsound("Drip", 127);         // water Drip
  25.            break;
  26.          case 3:
  27.            ambientsound("FlyBuzz", 127);      // buzzing
  28.            break;
  29.          case 4:
  30.            ambientsound("ValveTurn", 127);    // valve turning
  31.            break;
  32.          case 5:
  33.            ambientsound("StartupTick", 127);  // more ticking
  34.            break;
  35.          default:
  36.            terminate;
  37.        }
  38.  
  39.        delay(TicDelay);
  40.     }
  41. }
  42.  
  43. //--------door Korax ready ---------------
  44.  
  45. script 2 (void)  
  46. {   
  47.      thingsound(2, "KoraxVoiceReady", 127);
  48.             delay(const:100);
  49. }
  50.  
  51. //--------door cough sound ----------------
  52.  
  53. script 3 (void)  
  54. {   
  55.      thingsound(3, "PlayerPoisonCough", 127);
  56.  
  57. }
  58. //--------door glass sound -----------------
  59.  
  60. script 4 (void)  
  61. {   
  62.      thingsound(4, "GlassShatter", 127);
  63.  
  64. }
  65. //--------door bell-----------------------
  66.  
  67. script 5 (void)  
  68. {   
  69.      thingsound(5, "BellRing", 127);
  70. }
  71. // ------ clock tick sound ---------------
  72. //
  73. //        Tid#     DelayValue    Type of Sound  
  74. script 6 (int Tid, int TicDelay, int Type)
  75. {
  76.     while (Type!= 0 )
  77.     {  if (Type == 1)
  78.        {
  79.           thingsound(Tid, "ClockTick", 127);      // clock tick sound
  80.        }
  81.        else                                       // -or-
  82.        {
  83.           thingsound(Tid, "PuppyBeat", 127);      // dog howling
  84.        }
  85.  
  86.        delay(TicDelay);
  87.     }
  88.  
  89. }
  90. //------ rotating door --------------
  91.  
  92. script 10 (void)  
  93. {
  94.  
  95.       Polyobj_OR_RotateRight(const:4, 24, 64);  // polyid, speed,angle
  96.       delay(const:100);
  97.  
  98.       if (DidDoor == 0)  
  99.       {   ambientsound("KoraxVoiceWorship", 127);    // hi there
  100.           delay(const:100);
  101.           DidDoor = 1;
  102.       }
  103.  
  104.       Polyobj_OR_RotateLeft(const:4, 24, 64);   // polyid, speed,angle
  105.       delay(const:100);
  106.  
  107. }
  108.  
  109. //------ stop script 1 (another way of doing it)--
  110.  
  111. script 11 (void)  
  112. {
  113.     Script1 = 0;
  114. }
  115. // --------------end of simple stuff -------------
  116.  
  117.